#ifndef _SERVERWIN_H_
#define _SERVERWIN_H_

#include <winsock2.h>
#include <windows.h>
#include <iostream>

#define	PORT	10025
#define BUFLEN	4096
class	ServerWin
{
public :
	ServerWin();
	~ServerWin();
	
	void		LaunchServer();
	void		CloseConnection();

private :
	int			HandleListen();
	int			HandleSelect();
	int			NewClient(fd_set *StaticRFdSet, int max);
	std::string	HandleMsg(int checkSock, fd_set *StaticRFdSet, int *max);

	int			_servSock;
	std::string	myBuffer;
};

#endif 